package cc.telecomdigital.tdstock.activity.groups.more.push.util;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * Project：Server_Push Package：cc.mango.test.dataDemo.util Class：JsonRead
 * Description： Creater：hunter CreateTime：Oct 11, 2011 9:11:23 AM Modifier
 * ：hunter Modify time：Oct 11, 2011 9:11:23 AM Modify Remarks：
 * 
 * @version 1.0
 * 
 */
public class MyJsonRead
{
	private String	jsonString;

	public MyJsonRead(String json)
	{
		this.jsonString = json;
	}

	/**
	 * return json Content
	 * 
	 * @return
	 */
	public Map<String, String> getContent()
	{
		Map<String, String> maps = new HashMap<String, String>();
		String s = jsonString.replace("{", "").replace("}", "");
		String strs[] = s.split(",");
		for (int i = 0; i < strs.length; i++)
		{
			String temp[] = strs[i].split(":");
			maps.put(temp[0], temp[1]);
		}
		return maps;
	}
}
